/**
 * 
 */
package com.catsic.pub.ftp.dao;

import java.util.List;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.QueryHints;
import org.springframework.data.repository.query.Param;

import com.catsic.base.BaseDao;
import com.catsic.pub.entity.Ftp;

/**
 * @author sgl
 * FTPdao类
 */
public interface FtpDao extends BaseDao<Ftp, String>{
	
   public Ftp findByOrganCode(String organCode);
   
   @Query("select f from Ftp f where f.ftpuser=:ftpuser")
   @QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value ="true") }) 
   public List<Ftp> findByFtpuser(@Param("ftpuser") String ftpuser);
}
